﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Data.SqlClient;
using System.Data;
using DTO;
using DAO;
namespace BUS
{
    public class PhieuNhapBUS
    {
        PhieuNhapDAO pndao = new PhieuNhapDAO();
        public DataTable LayTableTheoSachThang(string M)
        {
            return pndao.LayTableTheoSachThang(M);
        }
        public DataTable LaySoLuongSachBanTrong1Thang(string m)
        {
            return pndao.LaySoLuongSachBanTrong1Thang(m);

        }
        public DataTable LayTable()
        {

            return pndao.LayTable();
        }
        public DataTable LayTableNguoc()
        {

            return pndao.LayTableNguoc();
        }
        public DataTable LayTableTheoNgay(DateTime form, DateTime to)
        {

            return pndao.LayTableTheoNgay(form,to);
        }
        public void them(PhieuNhapDTO pn)
        {
            pndao.them(pn);
        }

        public void sua(PhieuNhapDTO pn)
        {
            pndao.sua(pn);
        }
        public void Xoa(PhieuNhapDTO pn)
        {
            pndao.Xoa(pn);
        }
    }
}
